package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int insert(Customer record);
    Customer selectByPrimaryKey(Long id);
    List<Customer> selectAll();
    int updateByPrimaryKey(Customer record);
    List<Customer> selectByQuery(QueryObject queryObject);
    void updateStatus(@Param("customerId") Long customerId, @Param("status") Integer status);

    void updateCustomerBySellerId(@Param("customerId") Long customerId, @Param("newSellerId") Long newSellerId);

    List<Customer> selectCustomersByPotentialStatus(int statusPotential);

}